using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TraceNetworkTools
{
    /// <summary>
    /// <para>Convert Geometric Network To Trace Network</para>
    /// <para>Converts a geometric network to a trace network.</para>
    /// <para>将几何网络转换为追踪网络。</para>
    /// </summary>    
    [DisplayName("Convert Geometric Network To Trace Network")]
    public class ConvertGeometricNetworkToTraceNetwork : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ConvertGeometricNetworkToTraceNetwork()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_geometric_network">
        /// <para>Input Geometric Network</para>
        /// <para><xdoc>
        ///   <para>The geometric network that will be converted to a trace network.</para>
        ///   <para>Converting a geometric network to a trace network will drop the geometric network and create a trace network in its place. This change cannot be undone. Make a backup of your data before proceeding.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>将转换为追踪网络的几何网络。</para>
        ///   <para>将几何网络转换为追踪网络将删除几何网络，并在其位置创建追踪网络。此更改无法撤消。在继续之前备份您的数据。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_trace_network_name">
        /// <para>Output Trace Network Name</para>
        /// <para>The name of the output trace network.</para>
        /// <para>输出追踪网络的名称。</para>
        /// </param>
        public ConvertGeometricNetworkToTraceNetwork(object _in_geometric_network, object _out_trace_network_name)
        {
            this._in_geometric_network = _in_geometric_network;
            this._out_trace_network_name = _out_trace_network_name;
        }
        public override string ToolboxName => "Trace Network Tools";

        public override string ToolName => "Convert Geometric Network To Trace Network";

        public override string CallName => "tn.ConvertGeometricNetworkToTraceNetwork";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_geometric_network, _out_trace_network_name, _out_trace_network];

        /// <summary>
        /// <para>Input Geometric Network</para>
        /// <para><xdoc>
        ///   <para>The geometric network that will be converted to a trace network.</para>
        ///   <para>Converting a geometric network to a trace network will drop the geometric network and create a trace network in its place. This change cannot be undone. Make a backup of your data before proceeding.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>将转换为追踪网络的几何网络。</para>
        ///   <para>将几何网络转换为追踪网络将删除几何网络，并在其位置创建追踪网络。此更改无法撤消。在继续之前备份您的数据。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Geometric Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_geometric_network { get; set; }


        /// <summary>
        /// <para>Output Trace Network Name</para>
        /// <para>The name of the output trace network.</para>
        /// <para>输出追踪网络的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Trace Network Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_trace_network_name { get; set; }


        /// <summary>
        /// <para>Output Trace Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Trace Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_trace_network { get; set; }


        public ConvertGeometricNetworkToTraceNetwork SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}